package com.yisoo.common.to;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class EmailDataTo {


    private String to;
    private String title;
    private String content;
    private EmailParam emailParam;

    @Data
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    class EmailParam{
        private String topic;
        private String context;
        private String username;
        private String code;
        private String enableTime;}

    public void setEmailParam(         String topic,
             String context,
             String username,
             String code,
             String enableTime){
        this.setEmailParam(new EmailParam(topic,context,username,code,enableTime));
    }
}
